//api接口列表
const $api = {

    /**
     * 获取角色列表
     * **/
    getApproveRoleList(data = {}) {
        return request({
            url: '/getApproveRoleList',
            type: 'get',
            data
        })
    },
    /**
     * 获取审批流程详情
     * @param yund_id 运单id
     * **/
    getApproveBillDetail(data = {}) {
        return request({
            url: '/getApproveBillDetail',
            type: 'get',
            data
        })
    },

    /**
     * 确认签名
     * @param img 签名文件base64
     * @param id 用户id
     * **/
    saveApproveSign(data = {}) {
        return request({
            url: '/saveApproveSign',
            type: 'post',
            data
        })
    },
    /**
     * 批量确认签名
     * @param img 签名文件base64
     * @param id 用户id
     * **/
    saveBatchApproveSign(data = {}) {
        return request({
            url: '/saveBatchApproveSign',
            type: 'post',
            data
        })
    },
    /**
     * 获取openid
     * @param code code
     * **/
    getWeChatOpenid(data = {}) {
        return request({
            url: 'https://api.zhgylgl.com/wechat/getWeChatOpenid',
            type: 'post',
            data
        })
    },
    /**
     * 批量获取审批流程详情
     * @param batch_number 运单id
     * **/
    getBatchApproveBillDetail(data = {}) {
        return request({
            url: '/getBatchApproveBillDetail',
            type: 'get',
            data
        })
    },

    /**
     * 通过openid获取用户信息
     * @param code code
     * **/
    getWechatLogin(data = {}) {
        return request({
            url: 'https://api.zhgylgl.com/api/approve/getWechatLogin',
            type: 'post',
            data
        })
    },
    /**
     * 获取用户信息
     * @param page 1
     * @param pageSize 15
     * @param status 审批状态1开单人2追踪人员3平台审核4财务审核5董事长
     * @param time 2025-08-06 - 2025-06-08
     **/
    getApproveList(data = {}) {
        return request({
            url: 'https://api.zhgylgl.com/api/approve/getApproveList',
            type: 'get',
            data
        })
    },
    /**
     * 获取公司列表
     **/
    getCompany(data = {}) {
        return request({
            url: 'https://api.zhgylgl.com/api/approve/getCompany',
            type: 'get',
            data
        })
    },
}